package tools.ihm;

import java.awt.Rectangle;
import java.awt.Toolkit;

import javax.swing.JFrame;

public class JCenterScreenFrame extends JFrame
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public void setCenterBounds(int width, int height)
	{
		setBounds(new Rectangle( (((int)Toolkit.getDefaultToolkit().getScreenSize().getWidth()-width) /2) , (((int)Toolkit.getDefaultToolkit().getScreenSize().getHeight()-height)/2) , width, height));
	}
}
